<%@ include file="/common/taglibs.jsp"%>
<%@ page language="java" pageEncoding="UTF-8"%>
<title>上传组件(单个)演示页面</title>
<script type="text/javascript">
function myCallback(url){
	alert(url);
}
function myCallback2(url){
	$j('#uploadImage').show();
	$j('#uploadImage')[0].src= __mediaPath + url;
}
</script>
<table style="width:800px" cellspacing="0" cellpadding="0" border="0" class="dataintable">
	<tr>
		<th width="200px;">不限类型</th>
		<td>
			<input type="hidden" name="upload1" id="upload1"/>
			<probiz:plugin_upload fileInputId="upload1"  uploadCategory="abc"  onComplete="myCallback"/>
		</td>
	</tr>
	<tr>
		<th>限制jpg类型</th>
		<td>
			<input type="hidden" name="upload2" id="upload2"/>
			<probiz:plugin_upload fileInputId="upload2" uploadCategory="abc" uploadFileTypes="jpg"  onComplete="myCallback2"/>
		</td>
	</tr>
</table>

<img id="uploadImage" style="display:none;"/>


